@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";

body {
    margin: 0;
    height: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
    font-weight: 700;
}

html {
    height: 100%;
    box-sizing: border-box;
}

ul li {
    list-style: none;
}

#app {
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

// main-container global css
.app-container {
    padding: 20px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/*---滚动条默认显示样式--*/

::-webkit-scrollbar-thumb {
    background-color: #999;
    height: 50px;
    outline-offset: -2px;
    outline: 2px solid #fff;
    border-radius: 4px;
    border: 2px solid #fff;
}

/*---鼠标点击滚动条显示样式--*/

::-webkit-scrollbar-thumb:hover {
    background-color: #018ee8;
    height: 50px;
    border-radius: 4px;
}

/*---滚动条大小--*/

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/*---滚动框背景样式--*/

::-webkit-scrollbar-track-piece {
    background-color: #fff;
    border-radius: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    line-height: 1 !important;
}

.d-input {
    background-color: #fff;
    background-image: none;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    box-sizing: border-box;
    color: #606266;
    display: inline-block;
    font-size: inherit;
    height: 32px;
    line-height: 32px;
    outline: 0;
    padding: 0 15px;
    -webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    width: 100%;
    &:focus-within {
        border: 1px rgb(64, 158, 255) solid;
    }
}

.ol-overlay-container {
    pointer-events: none !important;
}

.el-dialog {
    border-radius: 10px;
}

.el-dialog__header {
    width: 100%;
    height: 40px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #3e91d1;
    background-image: -webkit-gradient(linear, left top, right bottom, color-stop(0, #1c71c7), color-stop(1, #9cc7f2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}
.el-dialog__header span {
    font-size: 16px;
    color: #fff;
}
.el-dialog__headerbtn {
    font-size: 0;
    top: 13px;
}


// 隐藏上传按钮
.d-hide {
    .el-upload--picture-card {
        display: none;
    }
}
// 添加/删除文件时去掉动画过渡
.el-upload-list__item {
    transition: none !important;
}

// 全局 container 布局新增 margin ，显示背景
.dl-container {
    width: auto !important;
    height: calc(100% - 30px) !important;
    margin: 15px;
    background-color: white;
    border-radius: 7px;
}

.el-table::before {
    height: 0px;
}
.el-table__fixed-right::before {
    height: 0px;
}

.mask-left {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    width: 210px;
    z-index: 99999;
}

.mask-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    height: 60px;
    z-index: 99999;
}

.ol-overlaycontainer, .ol-overlaycontainer-stopevent {
    pointer-events: none !important;
}